.class Lcom/burstly/lib/network/beans/cookie/CookieManager$DbSaveWorker;
.super Ljava/lang/Object;
.source "CookieManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/network/beans/cookie/CookieManager;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "DbSaveWorker"
.end annotation


# instance fields
.field private final mNewCookies:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/burstly/lib/network/beans/cookie/CookieHolder;",
            ">;"
        }
    .end annotation
.end field

.field private final mStorage:Lcom/burstly/lib/network/beans/cookie/ICookieStorage;


# direct methods
.method constructor <init>(Ljava/util/List;Lcom/burstly/lib/network/beans/cookie/ICookieStorage;)V
    .locals 0
    .parameter
    .parameter "storage"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lcom/burstly/lib/network/beans/cookie/CookieHolder;",
            ">;",
            "Lcom/burstly/lib/network/beans/cookie/ICookieStorage;",
            ")V"
        }
    .end annotation

    .prologue
    .line 187
    .local p1, newCookies:Ljava/util/List;,"Ljava/util/List<Lcom/burstly/lib/network/beans/cookie/CookieHolder;>;"
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 188
    iput-object p1, p0, Lcom/burstly/lib/network/beans/cookie/CookieManager$DbSaveWorker;->mNewCookies:Ljava/util/List;

    .line 189
    iput-object p2, p0, Lcom/burstly/lib/network/beans/cookie/CookieManager$DbSaveWorker;->mStorage:Lcom/burstly/lib/network/beans/cookie/ICookieStorage;

    .line 190
    return-void
.end method


# virtual methods
.method public run()V
    .locals 7

    .prologue
    .line 194
    invoke-static {}, Lcom/burstly/lib/util/Utils;->lowerCurrentThreadPriority()V

    .line 196
    :try_start_0
    iget-object v1, p0, Lcom/burstly/lib/network/beans/cookie/CookieManager$DbSaveWorker;->mStorage:Lcom/burstly/lib/network/beans/cookie/ICookieStorage;

    iget-object v2, p0, Lcom/burstly/lib/network/beans/cookie/CookieManager$DbSaveWorker;->mNewCookies:Ljava/util/List;

    invoke-interface {v1, v2}, Lcom/burstly/lib/network/beans/cookie/ICookieStorage;->processCookies(Ljava/util/Collection;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 201
    :goto_0
    return-void

    .line 198
    :catch_0
    move-exception v0

    .line 199
    .local v0, e:Ljava/lang/Exception;
    sget-object v1, Lcom/burstly/lib/network/beans/cookie/CookieManager;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v2, "CookieManager"

    const-string v3, "Exception during saving new cookies: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v6

    aput-object v6, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method
